﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020014D1 RID: 5329
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UpdateServerPrefsDataCsReq : IMessage<UpdateServerPrefsDataCsReq>, IMessage, IEquatable<UpdateServerPrefsDataCsReq>, IDeepCloneable<UpdateServerPrefsDataCsReq>, IBufferMessage
	{
		// Token: 0x17004314 RID: 17172
		// (get) Token: 0x0600EE4E RID: 61006 RVA: 0x0027C7ED File Offset: 0x0027A9ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UpdateServerPrefsDataCsReq> Parser
		{
			get
			{
				return UpdateServerPrefsDataCsReq._parser;
			}
		}

		// Token: 0x17004315 RID: 17173
		// (get) Token: 0x0600EE4F RID: 61007 RVA: 0x0027C7F4 File Offset: 0x0027A9F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UpdateServerPrefsDataCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004316 RID: 17174
		// (get) Token: 0x0600EE50 RID: 61008 RVA: 0x0027C806 File Offset: 0x0027AA06
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UpdateServerPrefsDataCsReq.Descriptor;
			}
		}

		// Token: 0x0600EE51 RID: 61009 RVA: 0x0027C80D File Offset: 0x0027AA0D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpdateServerPrefsDataCsReq()
		{
		}

		// Token: 0x0600EE52 RID: 61010 RVA: 0x0027C815 File Offset: 0x0027AA15
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpdateServerPrefsDataCsReq(UpdateServerPrefsDataCsReq other) : this()
		{
			this.serverPrefs_ = ((other.serverPrefs_ != null) ? other.serverPrefs_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EE53 RID: 61011 RVA: 0x0027C84A File Offset: 0x0027AA4A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpdateServerPrefsDataCsReq Clone()
		{
			return new UpdateServerPrefsDataCsReq(this);
		}

		// Token: 0x17004317 RID: 17175
		// (get) Token: 0x0600EE54 RID: 61012 RVA: 0x0027C852 File Offset: 0x0027AA52
		// (set) Token: 0x0600EE55 RID: 61013 RVA: 0x0027C85A File Offset: 0x0027AA5A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ServerPrefs ServerPrefs
		{
			get
			{
				return this.serverPrefs_;
			}
			set
			{
				this.serverPrefs_ = value;
			}
		}

		// Token: 0x0600EE56 RID: 61014 RVA: 0x0027C863 File Offset: 0x0027AA63
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UpdateServerPrefsDataCsReq);
		}

		// Token: 0x0600EE57 RID: 61015 RVA: 0x0027C871 File Offset: 0x0027AA71
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UpdateServerPrefsDataCsReq other)
		{
			return other != null && (other == this || (object.Equals(this.ServerPrefs, other.ServerPrefs) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EE58 RID: 61016 RVA: 0x0027C8A4 File Offset: 0x0027AAA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.serverPrefs_ != null)
			{
				num ^= this.ServerPrefs.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EE59 RID: 61017 RVA: 0x0027C8E0 File Offset: 0x0027AAE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EE5A RID: 61018 RVA: 0x0027C8E8 File Offset: 0x0027AAE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EE5B RID: 61019 RVA: 0x0027C8F1 File Offset: 0x0027AAF1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.serverPrefs_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.ServerPrefs);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EE5C RID: 61020 RVA: 0x0027C924 File Offset: 0x0027AB24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.serverPrefs_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ServerPrefs);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EE5D RID: 61021 RVA: 0x0027C964 File Offset: 0x0027AB64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UpdateServerPrefsDataCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.serverPrefs_ != null)
			{
				if (this.serverPrefs_ == null)
				{
					this.ServerPrefs = new ServerPrefs();
				}
				this.ServerPrefs.MergeFrom(other.ServerPrefs);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EE5E RID: 61022 RVA: 0x0027C9B8 File Offset: 0x0027ABB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EE5F RID: 61023 RVA: 0x0027C9C4 File Offset: 0x0027ABC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 66U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.serverPrefs_ == null)
					{
						this.ServerPrefs = new ServerPrefs();
					}
					input.ReadMessage(this.ServerPrefs);
				}
			}
		}

		// Token: 0x04005E32 RID: 24114
		private static readonly MessageParser<UpdateServerPrefsDataCsReq> _parser = new MessageParser<UpdateServerPrefsDataCsReq>(() => new UpdateServerPrefsDataCsReq());

		// Token: 0x04005E33 RID: 24115
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005E34 RID: 24116
		public const int ServerPrefsFieldNumber = 8;

		// Token: 0x04005E35 RID: 24117
		private ServerPrefs serverPrefs_;
	}
}
